package com.neusoft.ecommerce.entity;
/**
 * 
 * @author Alouette~
 *
 */

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class OnShelves extends AbstractToString{
	private Integer onShelvesNo;
	//外键
	
	private Goods goods;
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date onShelvesTime;
	private Integer onShelvesAmount;
	public OnShelves() {
		super();
	}
	public OnShelves(Integer onShelvesNo, Goods goods, Date onShelvesTime, Integer onShelvesAmount) {
		super();
		this.onShelvesNo = onShelvesNo;
		this.goods = goods;
		this.onShelvesTime = onShelvesTime;
		this.onShelvesAmount = onShelvesAmount;
	}
	/**
	 * @return the onShelvesNo
	 */
	public Integer getOnShelvesNo() {
		return onShelvesNo;
	}
	/**
	 * @param onShelvesNo the onShelvesNo to set
	 */
	public void setOnShelvesNo(Integer onShelvesNo) {
		this.onShelvesNo = onShelvesNo;
	}
	/**
	 * @return the goods
	 */
	public Goods getGoods() {
		return goods;
	}
	/**
	 * @param goods the goods to set
	 */
	public void setGoods(Goods goods) {
		this.goods = goods;
	}
	/**
	 * @return the onShelvesTime
	 */
	public Date getOnShelvesTime() {
		return onShelvesTime;
	}
	/**
	 * @param onShelvesTime the onShelvesTime to set
	 */
	public void setOnShelvesTime(Date onShelvesTime) {
		this.onShelvesTime = onShelvesTime;
	}
	/**
	 * @return the onShelvesAmount
	 */
	public Integer getOnShelvesAmount() {
		return onShelvesAmount;
	}
	/**
	 * @param onShelvesAmount the onShelvesAmount to set
	 */
	public void setOnShelvesAmount(Integer onShelvesAmount) {
		this.onShelvesAmount = onShelvesAmount;
	}
	
}
